package com.formation.managedbean;

import java.io.Serializable;
import java.util.Date;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;

import org.apache.log4j.Logger;

@ManagedBean
@SessionScoped
public class DatePickerBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final Logger log = Logger.getLogger(DatePickerBean.class);

	private Date dateSelected;
	private String data = "Afghanistan,Albania,Zimbabwe";

	/*************************
	 * ACTIONS
	 ************************/
	public void getDatePicker(ActionEvent e) {
		log.info("Appel action");
	}

	/*************************
	 * GETTER / SETTER
	 ************************/

	public Date getDateSelected() {
		return dateSelected;
	}

	public void setDateSelected(Date dateSelected) {
		this.dateSelected = dateSelected;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

}
